package netty.rpc.framework.core.netty.transport.serializer;

/**
 * @author guiyiqiao
 * @date 2020/12/4
 *
 * 序列化器抽象，具有对Java对象的序列化与反序列化功能
 */
public interface Serializer {

    byte[] serialize(Object obj);

    <T> T deserialize(byte[] bytes,Class<T> clazz);
}
